from py2neo import *
graph = Graph("http://localhost:7474",auth=("neo4j","100299"))


from pprint import *

# thing = Node('Person',name = 'Adam', height = 178)
# graph.create(thing)


# thing2 = Node('Person', name = "Alex", height = 170)
# graph.create(thing2)

# print(type(thing))


# relation = Relationship(thing, "Gay", thing2)
# graph.create(relation)
# print(type(relation))


# res = graph.run("match (n:Person) return n")
# for i in res:
# 	print(type(i))

res = graph.run("match (n:function) return n")

res = res.data()

for i in res:
	print('\"'+i['n']['name'][0:-2]+'\",')

	# print(i['name'])








